-- card: 45309 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 4755 -- name: -- part contents for background part 6 ----- text ----- 5.4 Bit Manipulation -- part contents for background part 4 ----- text ----- In keeping with its heritage as a "low-level" (but extensible) language suited for writing operating systems, C provides numerous operators for bit manipulation. Operands for these operators must be integral types. For this purpose, integral values may be assigned using octal constants, which contain a leading zero: int n = 077; /* decimal value 63 */ Briefly, C's bit manipulation operators are: bitwise negation (~); left shift (<<) and right shift (>>); bitwise AND (&), OR (|), and XOR (^); shorthand shift-assignment (<<= and >>=); shorthand AND-assignment (&=), OR-assignment (|=), and XOR-assignment (^=). -- part contents for background part 7 ----- text ----- 152